<?php 
include_once("../Classes/Pagina.php");
$pagina = new Pagina();
$lista = $pagina->colaborador->buscaTodos();

    

	
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	  <table width="400" border="0">
   <tr>
    <td>Matrícula</td>
    <td>Nome</td>
    <td>Função</td>
    <td>Sigla Area</td>
    <td>Situação</td>
  </tr>
    <?php 
    if(is_array($lista)){
    foreach($lista as $col){ ?> 
  
  <tr>
    <td><?php echo $col->getMatricula(); ?></td>
    <td><?php echo $col->getNome(); ?></td>
    <td><?php echo $col->getFuncao(); ?></td>
    <td><?php echo $col->getAreaResponsabilidade(); ?></td>
    <td><?php echo $col->converteSituacao(); ?></td>
  </tr>


     <?php }
        }?>
  </table>
</body>
</html>
